package com.ruoyi.duty.domain.vo;

import com.ruoyi.common.enums.UserBusinessSubType;
import com.ruoyi.common.enums.UserBusinessType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Description:
 * Author: YangShiWei
 * Email: strongwalter2014@gmail.com
 * Datetime: 2023/2/25 17:57
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class DutyRzFullVo {

    private Long memberId;
    private String name;
    private String type;
    private int fzrCount;
    private int tcCount;
    private int jcjhCount;
    private int leaveCount;
    private int thCount;
    private int jdxcCount;
    private int jypxCount;

    public UserBusinessSubType getSubType() {
        return UserBusinessSubType.getUserType(type, UserBusinessType.USER_MEMBER);
    }
}
